using UnityEngine;
using System.Collections;

public class CameraControl : MonoBehaviour
{
	void Start ()
	{
	}
	
	void Update ()
	{
        camera.orthographic = true;
		camera.orthographicSize -= 10*Input.GetAxis("Mouse ScrollWheel");
		if(Input.GetKey(KeyCode.UpArrow) || Input.GetKey(KeyCode.W))
			transform.position += Vector3.up;
		if(Input.GetKey(KeyCode.DownArrow) || Input.GetKey(KeyCode.S))
			transform.position += Vector3.down;
		if(Input.GetKey(KeyCode.LeftArrow) || Input.GetKey(KeyCode.A))
			transform.position += Vector3.left;
		if(Input.GetKey(KeyCode.RightArrow) || Input.GetKey(KeyCode.D))
			transform.position += Vector3.right;
		if(Input.GetKeyDown(KeyCode.F))
			Screen.fullScreen = !Screen.fullScreen;
		if(Input.GetKeyDown(KeyCode.Escape))
			Screen.fullScreen = false;
	}
}
